package com.tchy.cloud.entity;

import javax.persistence.*;
import java.util.Date;

import static javax.persistence.GenerationType.IDENTITY;

/**
 * xmweilove
 * 纬度结果分析
 */
@Entity
@Table(name = "c_ques_score_result", schema = "", catalog = "")
public class CScoreResultEntity {
    private Integer id;//主键 ques_score_result_id

    // private Integer qdId;//纬度  ques_dim_id
    private CQDimEntity dimEntity;

    private String name;//纬度名称 result_name
    private Float beginScore;//开始分数 begin_score
    private Float endScore;//开始分数 end_score
    private String resultDesc;//结果说明 result_desc
    private Date createTime;//创建时间 create_time


    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "ques_score_result_id")
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }


    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "ques_dim_id")
    public CQDimEntity getDimEntity() {
        return dimEntity;
    }

    public void setDimEntity(CQDimEntity dimEntity) {
        this.dimEntity = dimEntity;
    }

    @Basic
    @Column(name = "result_name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "begin_score")
    public Float getBeginScore() {
        return beginScore;
    }
    public void setBeginScore(Float beginScore) {
        this.beginScore = beginScore;
    }

    @Basic
    @Column(name = "end_score")
    public Float getEndScore() {
        return endScore;
    }
    public void setEndScore(Float endScore) {
        this.endScore = endScore;
    }

    @Basic
    @Column(name = "result_desc")
    public String getResultDesc() {
        return resultDesc;
    }

    public void setResultDesc(String resultDesc) {
        this.resultDesc = resultDesc;
    }

    @Basic
    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
